registerSource

fun registerSource(languageCode: String, translationSource: TranslationSource)

Registers a translation source for a language code.

Parameters

languageCode

a string representing the language code to register.

translationSource

a TranslationSource object representing the translation source to register.

Throws

if the language code is already registered in the map.